auto.waitFor();//等待开启无障碍
sleep(1000);
device.wakeUpIfNeeded();

//定制数字位置
function getxy(num) {
arr = Array()
arr[1] = [270, 1335]
arr[2] = [530, 1335]
arr[3] = [790, 1335]

arr[4] = [270, 1640]
arr[5] = [530, 1640]
arr[6] = [790, 1640]

arr[7] = [230, 1885]
arr[8] = [530, 1885]
arr[9] = [790, 1885]

return arr[num]
}
sleep(500)
text("上滑解锁").waitFor();
toastLog("上滑发现");
Swipe(540, 2000, 540, 500, [500])
sleep(1000)
//滑动手势进行解锁
gesture(1000, getxy(5), getxy(8), getxy(7), getxy(4), getxy(2), getxy(9), getxy(6)
);
toastLog("解锁成功")
sleep(500);
shell("am broadcast -a com.autojs.end",true);
//engines.stopAllAndToast();
exit();